const autoprefixer = require('autoprefixer');
const px2rem = require('postcss-pxtorem');
module.exports = {
    plugins: [
        px2rem({ 
            rootValue: 100, 
            exclude: file => {
                // 排除其他 node_modules 但保留 element-plus
                return file.includes('node_modules') &&  !file.includes('node_modules/element-plus')
            },
            propList: ['*'],
            selectorBlackList: [/^html$/] // 防止转换 html 选择器
        }),
        autoprefixer({}),
    ]
};
